/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.bofaconnectors.assignment;

/**
 *
 */
public class AssignmentSwitch {
    
    
    private String assignType;
    private String assignId;

    public AssignmentSwitch() {
    }
    
    public void DummyMethod()
    {
        
    }
    
    public String getAssignId() {
        return assignId;
    }

    public void setAssignId(String assignId) {
        this.assignId = assignId;
    }

    public String getAssignType() {
        return assignType;
    }

    public void setAssignType(String assignType) {
        this.assignType = assignType;
    }
    
    public void switchAssignment()
    {
        System.out.println("Switch Assignment");
        System.out.println("type:" + assignType);
        System.out.println("ID:" + assignId);
        
        if (assignType != null)
        {
            assignType = assignType.trim();
            if (assignType.equalsIgnoreCase("group"))
            {
                assignType = "User";
                assignId="2";
            }
            else
            {
                assignType="Group";
                assignId="2";
            }
            
        }
        assignType="User";
        assignId="1";
        System.out.println("Done Switch Assignment");
        System.out.println("type:" + assignType);
        System.out.println("ID:" + assignId);
    }
    

}
